package com.blacktry.service.impl;

import com.blacktry.entity.blog.Sorts;
import com.blacktry.entity.model.vueVO.Option;
import com.blacktry.mapper.blog.SortsMapper;
import com.blacktry.service.SortsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author blackTry
 * @since 2022-02-07
 */
@Service
public class SortsServiceImpl extends ServiceImpl<SortsMapper, Sorts> implements SortsService {

    @Override
    public List<Option> selectSortOptions() {
        return this.baseMapper.selectSortOptions();
    }

    @Override
    public List<Option> selectOneSortOptions(String id) {
        return this.baseMapper.selectOneSortOptions(id);
    }

    @Override
    public String[] backOneSortOptions(String id) {
        return this.baseMapper.backOneSortOptions(id);
    }
}
